<!-- Block Newsletter module-->

<div id="newsletter_block_left" >
	<h4>{l s='Newsletter' mod='blocknewsletter'} <span class="collapse" style="display: none"></span><span class="expand"style="display: none" ></span></h4>
	<div class="block_content">
            <p>Informacje o promocjach i&nbsp;nowościach w sklepie</p>
	{if isset($msg) && $msg}
           <div id="various2" style="display: none">{$msg}</div>
            <script type="text/javascript">
                $(document).ready(function() {
                    $.fancybox(
                        $("#various2").html(),
                        {
                        }
                    );
                });
            </script>
	{/if}
        
		<form action="{$link->getPageLink('index.php')}" method="post">
			<p><input type="text" name="email" value="{if isset($value) && $value}{$value}{else}{l s='your e-mail' mod='blocknewsletter'}{/if}" onfocus="javascript:if(this.value=='{l s='your e-mail' mod='blocknewsletter'}')this.value='';" onblur="javascript:if(this.value=='')this.value='{l s='your e-mail' mod='blocknewsletter'}';" /></p>
			<p>
				<select name="action">
					<option value="0"{if isset($action) && $action == 0} selected="selected"{/if}>{l s='Subscribe' mod='blocknewsletter'}</option>
					<option value="1"{if isset($action) && $action == 1} selected="selected"{/if}>{l s='Unsubscribe' mod='blocknewsletter'}</option>
				</select>
				<input type="submit" value="Dalej" class="button_mini" name="submitNewsletter" />
			</p>
		</form>
                                <div class="clearfix"></div>
	</div>
</div>

<!-- /Block Newsletter module-->
